package niconama04.client;

import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;


class ViewBuilder {

	private ViewBuilder() {
	}

	static void build() {
		{
			RootPanel rp = RootPanel.get("gwt_anchor");
			HorizontalPanel hp = new HorizontalPanel();
			Anchor anchorRef = new Anchor("Reference", Window.Location.createUrlBuilder().setPath("reference.html").buildString());
			Anchor anchorRgS = new Anchor("Regist Sentence", Window.Location.createUrlBuilder().setPath("sentence.html").buildString());
			Anchor anchorRgC = new Anchor("Regist Category", Window.Location.createUrlBuilder().setPath("category.html").buildString());
			Anchor anchorRgO = new Anchor("Regist Original-Category", Window.Location.createUrlBuilder().setPath("original.html").buildString());
			Anchor anchorCr = new Anchor("Create", Window.Location.createUrlBuilder().setPath("create.html").buildString());
			hp.add(anchorRef);
			{
				Label label = new Label(" ");
				label.setWidth("5px");
				hp.add(label);
			}
			hp.add(anchorRgS);
			{
				Label label = new Label(" ");
				label.setWidth("5px");
				hp.add(label);
			}
			hp.add(anchorRgC);
			{
				Label label = new Label(" ");
				label.setWidth("5px");
				hp.add(label);
			}
			hp.add(anchorRgO);
			{
				Label label = new Label(" ");
				label.setWidth("5px");
				hp.add(label);
			}
			hp.add(anchorCr);
			rp.add(hp);
		}
	}
}
